/**
 * 
 */
package com.p2p.base.service;

import java.io.File;
import java.util.Map;

import com.p2p.base.model.MailTemplate;

import freemarker.template.Template;

/**
 * @author ruiqi
 *
 */
public interface EmailService {

	public void sendEmail(MailTemplate mailTemplate,String toEmail,Map<String,Object> model,Map<String,File> attachMap);
	
	public String getMailText(Template template,Map<String,Object> model) throws Exception;
}
